<?php

namespace IDock\Insurance\ACIC\Request;

use IDock\Insurance\ACIC\Response\PolicyInfoResponse;
use IDock\Visitor\PolicyInfoVisitor;

class PolicyInfoRequest extends AllACICRequest
{
    protected $code = 'Q31';

    protected $response = PolicyInfoResponse::class;

    protected $urlTip = '保单详情查询';

    /**
     * @var  PolicyInfoVisitor $visitor
     */
    protected $visitor;

    /**
     * @return array
     */
    public function generate(): array
    {
        return [
            'PolicyNo' => $this->visitor->policyNo,
        ];
    }
}